﻿using Model.CustomDataType;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Model
{
    public class Worker: Person
    {
        public override object InitializeLifetimeService()
        {
            return null;
        }

        private int workerId;
        private int positionId;
        private string identityCard;
        private string phoneNumber;
        private string username;
        private string password;
        private short status;
        public Worker()
        { }
        public Worker(int id, string fullname, CMDateTime dob, Sex sex, string address, int position)
            :base(fullname,dob,address, sex)
        {
            this.workerId = id;
            this.positionId = position;
            this.status = 1;
        }

        public int getWorkerId()
        {
            return workerId;
        }
        public void setWorkerId(int id)
        {
            this.workerId = id;
        }

        public string getIdCard()
        {
            return identityCard;
        }
        public void setIdCard(string idCard)
        {
            this.identityCard = idCard;
        }

        public int getPositionId()
        {
            return positionId;
        }
        public void setPositionId(int pos)
        {
            this.positionId = pos;
        }

        public short getStatus()
        {
            return status;
        }
        public void setStatus(short status)
        {
            this.status = status;
        }

        public string getUsername()
        {
            return username;
        }
        public void setUsername(string username)
        {
            this.username = username;
        }

        public string getPassword()
        {
            return this.password;
        }
        public void setPassword(string pass)
        {
            this.password = pass;
        }

        public string getPhoneNumber()
        {
            return phoneNumber;
        }
        public void setPhoneNumber(string phoneNum)
        {
            this.phoneNumber = phoneNum;
        }
    }
}
